<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>Insert title here</title>
<title>车票预订</title>
<link rel="stylesheet" type="text/css" href="../css/easyui.css">
<link rel="stylesheet" type="text/css" href="../css/icon.css">
<link rel="stylesheet" type="text/css" href="../css/demo.css">
<link rel="stylesheet" type="text/css" href="../css/ticket.css">

<script type="text/javascript" src="../js/jquery-3.2.1.min.js"></script>
<script type="text/javascript" src="../js/jquery.easyui.min.js"></script>
<script type="text/javascript" src="../js/easyui/locale/easyui-lang-zh_CN.js"></script>
<script type="text/javascript" src="../js/ticket.js"></script>

</head>
<body>
	<div id="top">
	</div>
	<div id="navi">
		<span id="cr">车票预订</span>
		<span id="user"  >欢迎您${sessionScope.username},退出</span>
 	 </div>
 	 <div id="menu">
 		 <ul>
			<li>个人信息</li>
			<li>票务信息</li>
			<li>订单管理</li>
		</ul>
	</div>
	<div id="content">

		<div class="easyui-panel" title="预订信息" style="width:100%;max-width:600px;padding:30px 60px;">
			<form action="http://localhost:8080/new12306/TicketServlet?action=addOrder" method="post">
      			<div style="margin-bottom:20px">
          		  <input class="easyui-textbox" label="ticketId:"  value="${ticket.ticketId }"  name="ticketId" style="width:80%;height:34px">
       			</div>
        		<div style="margin-bottom:20px">
            		<input class="easyui-textbox" label="用户名:"  value="${session.getAttribute("username")}"  editable="false" style="width:80%;height:34px">
        		</div>
        		<div style="margin-bottom:20px">
           			<input class="easyui-textbox" label="发车时间" value="${ticket.time}" editable="false" style="width:80%;height:34px">
        		</div>
        		<div style="margin-bottom:20px">
            		<input class="easyui-textbox" label="到站时间" value="${ticket.arrivaltime}" editable="false" style="width:80%;height:34px">
        		</div>
        		<div style="margin-bottom:20px">
            		<input class="easyui-textbox" label="车次:"  value="${ticket.trainNumber }" editable="false" style="width:80%;height:34px">
        		</div>
        		<div style="margin-bottom:20px">
            		<input class="easyui-textbox" label="起点站:"  value="${ticket.startStation}"  editable="false" name="startStation" style="width:80%;height:34px">
        		</div>
         		<div style="margin-bottom:20px">
            		<input class="easyui-textbox" label="终点站" value="${ticket.terminalStation}" name="terminalStation" editable="false" style="width:80%;height:34px">
        		</div>
        		<div style="margin-bottom:20px">
            		<input class="easyui-textbox" label="票价" value="${ticket.price}" name="price" editable="false" style="width:80%;height:34px">
        		</div>
        
        		<div>
            		<input type="submit" class="easyui-linkbutton" iconCls="icon-ok" style="width:40%;height:32px" value="提交订单">
        
            		<a href="ShowAllTickets.jsp" class="easyui-linkbutton" iconCls="icon-ok" style="width:40%;height:32px">返回</a>
        		</div>
			</form>
    		<div id="foot">
			</div>
		</div>
	</div>
</body>
</html>